package vip.mall.common.exception;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import vip.mall.common.enums.CommonResponseCode;

/**
 * @author ASUS
 * @Date 2025/2/13 14:23
 * @Descripition 自定义异常
 */
@SuppressWarnings("all")
@Schema(description = "自定义异常")
@Data
public class CommonException extends Exception{
    private CommonResponseCode commonResponseCode;
    public CommonException(CommonResponseCode commonResponseCode, String message) {
        super(message);
        setCommonResponseCode(commonResponseCode);
    }
}
